<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://unpkg.com/vue"></script> -->
    <script src="./static/js/vue.global.js"></script>
    <style>
        body{
            display: flex;
            flex-direction: column;  /* 子元素垂直排列 */
            align-items: center; /* 子元素水平居中 */ 
        }
        #app{
            padding: 20px;
            background-color: antiquewhite;
            border-radius: 10%;
        }
    </style>
</head>
<body>
    <div id="heading">
        <h3 style="color: red;">{{title}}</h3>
    </div>
    <div id="app">
        <p>{{name}}</p>
        <p>{{age}}</p>
        <p>{{interest}}</p>
        <p>{{major}}</p>
    </div>
    
</body>

<script>

    var Heading={
        data(){
            return{
                title:"个人基本信息",
            };
        },
    };
    Vue.createApp(Heading).mount("#heading")

    var App={
        data(){
            return{
                name:    "姓   名：张某",
                age:     "年   龄：20",
                interest:"兴趣爱好：吃饭、睡觉、打豆豆",
                major:   "专   业：软件技术",
            };
        },
    };
    Vue.createApp(App).mount("#app")

</script>

</html>